// -------------- 设备添加表单 ----------------------
var from_vue1 = new Vue({
    el: '#mobile_add',
    data() {
        return {
            place_info: null,
            monitor_info: null
        }
    }
});
// --------------- 设备修改表单 --------------------
var from_vue2 = new Vue({
    el: '#mobile_edit',
    data() {
        return {
            place_info: null,
            monitor_info: null
        }
    }
});
// ----------------- 白名单添加表单 -------------------------
var form_vue3 = new Vue({
    el: "#whitelist_add",
    data() {
        return {
            place_info: null,
        }
    }
});
// ----------------- 白名单修改表单 -----------------------
var form_vue4 = new Vue({
    el: "#whitelist_edit",
    data() {
        return {
            place_info: null,
        }
    }
});
// ------------------ 使用记录下拉菜单 -----------------------
var form_vue = new Vue({
    el: '#use_record_select',
    data() {
        return {
            mobile_info: null,
            monitor_info: null
        }
    }
});
// ---------------- 人员添加表单 ------------------------------------
var form_vue5=new Vue({
    el: "#workListAdd",
    data() {
        return {
            place_info: null,
        }
    }
});
// ---------------- 人员修改表单 ------------------------------------
var form_vue6=new Vue({
    el: "#workListEdit",
    data() {
        return {
            place_info: null,
        }
    }
});
// --------------------- axios ---------------------------
axios
    .get("/d/control/info")
    .then(function (response) {
        let con = response.data;
        from_vue1.place_info = con.district_info;
        from_vue1.monitor_info = con.monitor_info;
        from_vue2.place_info = con.district_info;
        from_vue2.monitor_info = con.monitor_info;
        form_vue3.place_info = con.place_info;
        form_vue4.place_info = con.place_info;
        form_vue.mobile_info = con.mobile_info;
        form_vue.monitor_info = con.monitor_info;
        form_vue5.place_info = con.district_info;
        form_vue6.place_info = con.district_info;
    });